package com.guigu.www.controller.yinBo;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.guigu.www.dao.bean.TCheckgroup;
import com.guigu.www.service.TCheckgroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

import java.util.ArrayList;
import java.util.List;


/**
 * <p>
 * 检查分组表 前端控制器
 * </p>
 *
 * @author abo
 * @since 2021-06-17
 */
@RestController
@CrossOrigin
@RequestMapping("/tCheckgroup")
public class TCheckgroupController {

    @Autowired
    TCheckgroupService tCheckgroupService;

    /*查询当前套餐的检查项*/
    @PostMapping("")
    public List<TCheckgroup> q(@RequestBody List<Integer> list){
        Wrapper<TCheckgroup> wrapper = new EntityWrapper<TCheckgroup>();
        wrapper.in("id",list);

        List<TCheckgroup> tCheckgroups = tCheckgroupService.selectList(wrapper);
        return tCheckgroups;
    }
}

